package com.example.demo.design.GoF.command.composite;

/**
 * //树叶构件: 具体命令2
 *
 * @author luowj12
 * @since 2021/5/8 16:34
 */
public class ConcreteCommand1 implements AbstractCommand {
    private CompositeReceiver receiver;
    ConcreteCommand1() {
        receiver = new CompositeReceiver();
    }
    @Override
    public void execute() {
        receiver.action1();
    }
}
